package com.gao.mongo.dao;

import com.gao.mongo.domain.Cart;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * ClassName: CartRepository
 * Description:
 * date: 2021/8/27 22:04
 *
 * @author gaoxi
 * @since JDK 1.8
 */
@Repository
public interface CartRepository extends MongoRepository<Cart,String> {


    Page<Cart> findCartListPageByUserId(Integer userId, PageRequest of);
}
